from pyecharts import options as opts
from pyecharts.charts import Liquid

completed_percentage = 65

colors = ["#599CB4"]

liquid = (
    Liquid()
    .add("完成率", [completed_percentage / 100], color=colors)  # 设置颜色
    .set_global_opts(title_opts=opts.TitleOpts(title="波浪水球图"))
)

#显示图表
#liquid.render("D:/python charm/01/可视化/第二章/图片/波浪水球图.html")